#!/bin/bash

sfile="fblist.txt"

echo "" > gblinks.html
echo "" > gbaccept.html

while read line
do
# http://www.facebook.com/profile.php?id=12345678

newline='http://apps.facebook.com/gangsterbattle/?re='${line:39}'&oi=3'
acceptline='http://apps.facebook.com/gangsterbattle/family.php?op=gangster_invite&refuid='${line:39}'&action=accept'
# echo ${line:39}
echo $newline

echo "<a href=\"$newline\" target=\"_blank\">$newline</a><br>" >> gblinks.html
echo "<a href=\"$acceptline\" target=\"_blank\">$acceptline</a><br>" >> gbaccept.html

done < $sfile


# http://apps.facebook.com/gangsterbattle/?re=12345678&oi=3
# http://apps.facebook.com/gangsterbattle/family.php?op=gangster_invite&refuid=1234567&action=accept
